package org.funtester.performance.books.chapter02.section2;

public class DoubleCheckedLocking {

    private static DoubleCheckedLocking driver;

    public static DoubleCheckedLocking getDriver() {
        if (driver == null) {
            synchronized (DoubleCheckedLocking.class) {
                if (driver == null) {
                    driver = new DoubleCheckedLocking();
                }
            }
        }
        return driver;
    }


}
